package org.linlinjava.litemall.wx.service;

import com.github.pagehelper.Page;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.linlinjava.litemall.db.service.LitemallIncomeService;
import org.linlinjava.litemall.db.vo.IncomeOrderVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
@Service
public class WxUserIncomeService {
    private final Log logger = LogFactory.getLog(WxUserIncomeService.class);

    @Autowired
    private LitemallIncomeService incomeService;


    public Page<IncomeOrderVo> queryList(Integer userId, Integer showType, Integer page, Integer size) {
        Page<IncomeOrderVo> grouponRulesList = (Page<IncomeOrderVo>)incomeService.queryList(userId, showType, page, size);
        return grouponRulesList;
    }

    public void paySuccess(String orderSn) {
        incomeService.paySuccess(orderSn);
    }
}
